#include <GL/glut.h>

void myDisplay(void) {
	glClear(GL_COLOR_BUFFER_BIT);
	glColor3f(0.5, 0.5, 0.5);

	glBegin(GL_POINTS);
		for(int i=0; i<10000; i++)
			glVertex2i(i, i);
	glEnd();
	glFlush();
}

int main(int argc, char * argv[]) {
	// create a window
	glutInit(&argc, argv);
	glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE);
	glutInitWindowPosition(100, 100);
	glutInitWindowSize(400, 400);
	glutCreateWindow("OpenGL Program 2");

	// Display
	glutDisplayFunc(&myDisplay);

	// Main Loop
	glutMainLoop();

	return 0;
}
